package com.dark.quick;

public class TestString {
	public static void main(String[] args) {
		String aaaa = new String("ds");
		aaaa=aaaa.intern();
		String aa = "ds";
		String aaa = "ds";
		System.out.println(aa==aaa);
		System.out.println(aa==aaaa);
		Object object1 = new Object();
		Object object2 = new Object();
		System.out.println(aaa.equals(aaaa));
		System.out.println(object1.equals(object2));
		Student student1 = new Student("ds");
		Student student2 = new Student("ds");
		System.out.println(student1.getName() == student2.getName());
	}
}
